package com.yanqu.road.entity.activity.feast.data;

/**
 * pvp位置信息
 * 坐标精度先按整形来算
 * 坐标点放大1w倍
 */
public class CrossFeastPvpPosition {

    /**
     * 横坐标
     */
    private double x;

    /**
     * 纵坐标
     */
    private double y;

    /**
     * 方向横坐标
     */
    private double dirX;

    /**
     * 方向纵坐标
     */
    private double dirY;

    /**
     * 位置更新时间
     */
    private long time;

    public CrossFeastPvpPosition() {

    }

    public CrossFeastPvpPosition clone() {
        CrossFeastPvpPosition position = new CrossFeastPvpPosition();
        position.setX(this.x);
        position.setY(this.y);
        position.setDirX(this.dirX);
        position.setDirY(this.dirY);
        position.setTime(this.time);
        return position;
    }

    public double getX() {
        return x;
    }

    public void setX(double x) {
        this.x = x;
    }

    public double getY() {
        return y;
    }

    public void setY(double y) {
        this.y = y;
    }

    public double getDirX() {
        return dirX;
    }

    public void setDirX(double dirX) {
        this.dirX = dirX;
    }

    public double getDirY() {
        return dirY;
    }

    public void setDirY(double dirY) {
        this.dirY = dirY;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }
}
